import axios from "./request";

//登录
function searchUsersName(params={}){
    return axios.post('/api/searchUsersName',params)
}

function createUser(params={}){
    return axios.post('/api/createUser',params)
}

function signIn(params={}){
    return axios.post('/api/signIn',params)
}











function swiper1(params={}){
    return axios.get('/api/base/swiper1',{params})
}
function swiper2(params={}){
    return axios.get('/api/base/swiper2',{params})
}
//注册
function staff_add(params={}){
    return axios.post('/api/staff/add',params)
}
function rolelist11(params={}){
    return axios.get('/api/role/list',{params})
}
function getRealtimedata(params={}){
    return axios.get('/api/system/realtimedata',{params})
}
function getHistorydata(params={}){
    return axios.get('/api/system/historydata',{params})
}
function getStafflist(params={}){
    return axios.post('/api/staff/search',params)
}
function getCustomlist(params={}){
    return axios.post('/api/custom/search',params)
}
function delStaff(params={}){
    return axios.post('/api/staff/del',params)
}
function delCustom(params={}){
    return axios.post('/api/custom/del',params)
}
function delAllCustom(params={}){
    return axios.post('/api/custom/delmany',params)
}
function editStaff(params={}){
    return axios.post('/api/staff/edit',params)
}
export{
    searchUsersName,
    createUser,
    signIn,




    swiper1,
    swiper2,
    staff_add,
    rolelist11,
    getRealtimedata,
    getStafflist,
    delStaff,
    editStaff,
    getCustomlist,
    delCustom,
    delAllCustom,
    getHistorydata
}